package com.example.databasepj.mapper;

import com.example.databasepj.entity.OrderDetailEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    int insertOrderDetail(OrderDetailEntity orderDetailEntity);
    List<OrderDetailEntity> selectOrderDetailByOrderID(int order_ID);
    Integer getTotalSalesByDishId(int dishId);

    Integer getTopPurchaserByDishId(int dishID);
    Integer countOnlineByDishID(int dishID);
    Integer countOfflineByDishID(int dishID);
}
